<template>
    <div>
        <a-input v-model:value="val"></a-input>
        <a-button @click="handleRead">read</a-button>
        <a-button @click="handleClick">write</a-button>
    </div>
</template>
<script>
export default {
    name: "demoVuels",
    data(){
        return {
            val: ''
        }
    },
    methods: {
        handleClick() {
            this.$ls.set("name",this.val);
        },
        handleRead(){
            this.val=this.$ls.get("name");
        }
    }
}
</script>
